package org.dfyy.postgisdemo;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/**
 * @author 书山
 * @version 1.0
 * @date 2024-05-23 4:39
 */
public class test {
    public static void main(String[] args) {

        Map<String,String> map = new HashMap<>();
        map.put("1","11");
        map.put("2","22");
        map.put("3","33");


        System.out.println("logout");

        System.out.println("login");


        Set<String> strings = map.keySet();
        Iterator<String> iterator = strings.iterator();

        for (String string : strings) {
            System.out.println(string + "=" + map.get(string));
        }

//        while(iterator.hasNext()){
//            String next = iterator.next();
//            System.out.println(next + "=" + map.get(next));
//        }

        // lombda表达式
        strings.forEach(System.out::println);
    }
}
